]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Explicitly set the size of the workspace actors
authorOwen W. Taylor <otaylor@fishsoup.net>
Thu, 13 Aug 2009 02:07:10 +0000 (22:07 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 13 Aug 2009 12:50:05 +0000 (08:50 -0400)
Instead of counting on the implicit sizing of ClutterGroup, which isn't
going to work well because of current limitations of ClutterClone, set
the size of workspace explicitly based on the screen size.

This should fix various problems with drag-and-drop being unreliable;
if a workspace was sized to big it could overlap other workspaces or
elements of the overview.

http://bugzilla.gnome.org/show_bug.cgi?id=591643

js/ui/workspaces.js

index 7802505f4ba9de530546d0c3bae8337add35b40d..39e2cd48f4d49e28b80955a6b286e1cabb2cf589 100644 (file)
@@ -274,6 +274,12 @@ Workspace.prototype = {
 
         this.actor = new Clutter.Group();
         this.actor._delegate = this;
+        // Auto-sizing is unreliable in the presence of ClutterClone, so rather than
+        // implicitly counting on the workspace actor to be sized to the size of the
+        // included desktop actor clone, set the size explicitly to the screen size.
+        // See http://bugzilla.openedhand.com/show_bug.cgi?id=1755
+        this.actor.width = global.screen_width;
+        this.actor.height = global.screen_height;
         this.scale = 1.0;
 
         let windows = global.get_windows().filter(this._isMyWindow, this);